﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Architecture.Repository.Migrations
{
    public partial class 领导 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IsBoos",
                table: "RoleInfos",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.CreateTable(
                name: "Askforleave",
                columns: table => new
                {
                    Askforleaveid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    BeginTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    OverTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CountTime = table.Column<int>(type: "int", nullable: false),
                    ReportingTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    department = table.Column<int>(type: "int", nullable: false),
                    AFLtype = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    AFLasking = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    departmentBoos = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Askforleave", x => x.Askforleaveid);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Askforleave");

            migrationBuilder.DropColumn(
                name: "IsBoos",
                table: "RoleInfos");
        }
    }
}
